<?php
set_time_limit(0);
$basePath = realpath(dirname(__file__) . '/../');
require_once ($basePath . "/inc/helper_functions.php");
require_once ($basePath . "/inc/database_functions.php");
require_once ($basePath . "/inc/html_generators.php");
require_once ($basePath . "/inc/log_file_handling.php");
  
?>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>

<div>
    <a href="index.php">Back</a>
</div>

<?php
    generate_from_to_textboxes();
    
    connectToDatabase(); 

    $result = getMostPopularWebsites();
    genControlWebStat("websites.png");
    genControlWebTransferredDataStat("websites2.png");      
    mysql_free_result($result);
    
    closeDatabaseConnection();
?>